#ifndef __BLUETOOTH_H__
#define __BLUETOOTH_H__

#include <stdint.h>
#include "Motor.h"

#define BLUE_RX_FLAG		0x01
#define BLUE_CTRCAR_FLAG	0x02

typedef struct{
	uint8_t Bluetooth_RxFlag;
	uint8_t Bluetooth_CtrCarFlag;
}Bluetooth_Flag;

void Bluetooth_Init(void);
void Bluetooth_SendByte(uint8_t Byte);
void Bluetooth_SendArray(uint8_t* Array,uint16_t Length);
void Bluetooth_SendString(char* String);
void Bluetooth_SendNum(uint32_t Number,uint8_t Length);
void Bluetooth_Printf(char* format,...);
uint8_t Bluetooth_GetFlag(uint8_t BL_Flag);
uint8_t Bluetooth_GetRxData(void);
void Bluetooth_CtrMasterCar(SetMotor_Speed* BL_Speed);

#endif
